namespace ApplicationDAL.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Initialisation : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.DesignPatterns",
                c => new
                    {
                        DesignPatternId = c.Int(nullable: false, identity: true),
                        Name = c.String(),
                        Summary = c.String(),
                    })
                .PrimaryKey(t => t.DesignPatternId);
            
            CreateTable(
                "dbo.DesignRules",
                c => new
                    {
                        DesignRuleId = c.Int(nullable: false, identity: true),
                        Name = c.String(),
                        Summary = c.String(),
                    })
                .PrimaryKey(t => t.DesignRuleId);
            
            CreateTable(
                "dbo.ExternalLinks",
                c => new
                    {
                        ExternalLinkId = c.Int(nullable: false, identity: true),
                        Title = c.String(),
                        Summary = c.String(),
                    })
                .PrimaryKey(t => t.ExternalLinkId);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.ExternalLinks");
            DropTable("dbo.DesignRules");
            DropTable("dbo.DesignPatterns");
        }
    }
}
